package worktest;


public class RegularExpressionTest {  
     
  
    public static void main(String[] args) {  
    	String s = "http://10.12.136.14:48080/rs";
    	s = "http://apk.mmarket.com/x";
    	System.out.println(s.substring(0, s.split("/")[2].length()+8));

    }

  
}  